package edu.whut.jdk7.calendar;


import java.util.Calendar;

/*
判断2050年3月1日是否是疯狂星期四
 */
public class CalenderTest01 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        c.set(2024,9,17);//月份是0-11
        int week = c.get(Calendar.DAY_OF_WEEK);
        char[] weeks = {' ','日','一','二','三','四','五','六'};
        if (weeks[week]=='四')
            System.out.println("是疯狂星期四！");
        else
            System.out.println("不是！");
    }
}
